package com.guslegend.spzx.manager.mapper;

import com.guslegend.spzx.model.dto.system.SysRoleDto;
import com.guslegend.spzx.model.entity.system.SysRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author: guslegend
 * @description: 角色数据访问层
 * @create: 2025-05-07 10:07
 **/
@Mapper
public interface SysRoleMapper {

    public abstract List<SysRole> findByPage(SysRoleDto sysRoleDto);

    public abstract void saveSysRole(SysRole sysRole);

    public abstract void updateSysRole(SysRole sysRole);

    public abstract void deleteById(Long roleId);

    public abstract List<SysRole> findAllRoles();
}
